package com.shenfc.fxzj.service.impl;

import com.shenfc.fxzj.domain.MemberOauth;
import com.shenfc.fxzj.mapper.MemberOauthMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shenfc.fxzj.service.IMemberOauthService;

/**
 * 第三方用户接口类
 */
@Service("memberOauthService")
public class MemberOauthServiceImpl implements IMemberOauthService{
    @Autowired
    private MemberOauthMapper memberOauthMapper;


    @Override
    public MemberOauth getMemberOauthByOpenId(String openId) {
        return memberOauthMapper.getMemberOauthByOpenId(openId);
    }

    @Override
    public int addMemberOauth(MemberOauth mo) {
        return memberOauthMapper.insertSelective(mo);
    }
}
